<div class="feed_sidebar">
  
  <% if @feed.member.photo? %>
        <%= image_tag @feed.member.photo.url, :class => "feed_avatar_sidebar" %>
        <% else %>
        <%= image_tag('avatars/default.png', :class => "feed_avatar_sidebar")%>
        <% end %>
        
  <% if @feed.content_type == 'GroupsPost'%> 
      <%= image_tag('feed_icons/new_reply.png', :class => "feed_icon_sidebar")%>
      Novi odgovor u temi 
      <%= link_to @feed.content.groups_thread.title, @feed.content.groups_thread.url %>.
  <% end %>
  
  <% if @feed.content_type == 'GroupsThread' and not @feed.content.sticky%> 
      <%= image_tag('feed_icons/new_thread.png', :class => "feed_icon_sidebar")%>
      Stvorena je nova tema <%= link_to @feed.content.title, @feed.content.url %> 
  <% end %>
  
  <% if @feed.content_type == 'GroupsThread' and @feed.content.sticky %> 
      <%= image_tag('feed_icons/new_sticky.png', :class => "feed_icon_sidebar")%>
      Stvorena je nova obavijest <%= link_to @feed.content.title, @feed.content.url %> 
  <% end %>
  
  <% if @feed.content_type == 'Group'%> 
      <%= image_tag('feed_icons/new_follower.png', :class => "feed_icon_sidebar")%>
      <%= link_to @feed.member.username, @feed.member %>
      se pridružio/la grupi 
      <%= link_to @feed.content.name, @feed.content.url %>.
  <% end %>
  
<div style="clear:both;"></div>  
</div>
